<?php
/**
 * Created by PhpStorm.
 * User: rabbibox
 * Date: 2017/6/30
 * Time: 13:59
 */

namespace backend\modules\rbac\components;


use backend\components\Controller;

class RbacController extends Controller {

  public $layout = '//main';
  public function beforeAction($action){
    if(parent::beforeAction($action)){
      if($action->id == 'index'){
        $this->layout = '//column_index';
      }
      return true;
    }else{
      return false;
    }
  }
}